import request from '@/util/request.js'
import {
	API_ROOT
} from '@/util/config.js'

// 联系客服接口  
export function catConfirm(data) {
	return request({
		url: `${API_ROOT}/index/x_catconfirm`,
		method: 'get',
		data: data
	})
}

// 获取猫咪身份证接口
export function getCatId(data) {
	return request({
		url: `${API_ROOT}/index/x_getcatid`,
		method: 'get',
		data: data
	})
}

// 门店选择列表
export function xStores(data) {
	return request({
		url: `${API_ROOT}/index/x_stores`,
		method: 'get',
		data: data
	})
}

// 填写申请购买猫咪
export function catBuyer(data) {
	return request({
		url: `${API_ROOT}/index/x_catbuyer`,
		method: 'post',
		data: data
	})
}

// 确认订单接口
export function firstPay(data) {
	return request({
		url: `${API_ROOT}/index/x_first_pay`,
		method: 'get',
		data: data
	})
}

// 门店检查接口
export function careList(data) {
	return request({
		url: `${API_ROOT}/index/x_carelist`,
		method: 'get',
		data: data
	})
}

// 担保服务接口
export function ifvalid(data) {
	return request({
		url: `${API_ROOT}/index/x_ifvalid`,
		method: 'get',
		data: data
	})
}

// 会员中心买猫记录
export function mycart(data) {
	return request({
		url: `${API_ROOT}/index/x_mycart`,
		method: 'get',
		data: data
	})
}
